package com.dao.sys;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.model.sys.SysUser;

public interface SysUserMapper {
	int deleteByPrimaryKey(String userid);

	int insert(SysUser record);

	SysUser selectByPrimaryKey(String userid);

	SysUser selectByNamePwd(@Param("loginname") String loginname, @Param("pwd") String pwd);

	List<SysUser> selectAll();

	List<SysUser> selectAllByDw(String userdept);

	List<SysUser> selectAllByDw(HashMap<String, Object> hashMap);

	int existLoginame(String loginnameString);

	int existByLoginameUserid(@Param("loginname") String loginnameString, @Param("userid") String useridString);

	int updateByPrimaryKey(SysUser record);

	SysUser selectByCasName(HashMap<String, Object> hashMap);
}